﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tasks.Common.Enum;

namespace Tasks.Common.Entitys
{

    [Serializable]
    public partial class CarCompany
    {

        #region CarCompanyID

        public int CarCompanyID { get; set; }

        #endregion

        #region Name

        private String m_name;

        /// <summary>Gets or sets Name</summary>
        public String Name
        {
            get { return m_name; }
            set { m_name = value; }
        }

        #endregion

        #region Relation

        private Int32 m_relation;

        /// <summary>Gets or sets Relation</summary>
        public Int32 Relation
        {
            get { return m_relation; }
            set { m_relation = value; }
        }

        #endregion

        #region Remark

        private String m_remark;

        /// <summary>Gets or sets Remark</summary>
        public String Remark
        {
            get { return m_remark; }
            set { m_remark = value; }
        }

        #endregion

        #region State

        private Int32 m_state;

        /// <summary>Gets or sets State</summary>
        public Int32 State
        {
            get { return m_state; }
            set { m_state = value; }
        }

        #endregion

        public int OwnerID { get; set; }
        public int UserProfileID { get; set; }
        public int PaymentMode { get; set; }
        private string _PaymentModeToStr;
        public string PaymentModeToStr
        {
            get
            {
                return CommonUtil.GetEnumDescription(typeof(EnterprisePaymentMode), this.PaymentMode);
            }
            set
            {
                _PaymentModeToStr = value;

            }
        }
        private string _LinkmanMobile;
        public string LinkmanMobile
        {
            get
            {
                return this.Contact.LinkmanMobileNo;
            }
            set
            {
                _LinkmanMobile = value;
            }
        }
        /// <summary>
        /// 联系方式
        /// </summary>
        public ContactInfo Contact { get; set; }

    }
}
